package com.khtn.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the orders database table.
 * 
 */
@Entity
@Table(name="orders")
@NamedQuery(name="Order.findAll", query="SELECT o FROM Order o")
public class Order implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="order_id")
	private int orderId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="order_insert_time")
	private Date orderInsertTime;

	@Lob
	@Column(name="order_note")
	private String orderNote;

	@Column(name="order_status")
	private String orderStatus;

	@Column(name="order_total")
	private int orderTotal;

	@Column(name="order_tour_id")
	private int orderTourId;

	@Column(name="order_user_id")
	private int orderUserId;

	public Order() {
	}

	public int getOrderId() {
		return this.orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public Date getOrderInsertTime() {
		return this.orderInsertTime;
	}

	public void setOrderInsertTime(Date orderInsertTime) {
		this.orderInsertTime = orderInsertTime;
	}

	public String getOrderNote() {
		return this.orderNote;
	}

	public void setOrderNote(String orderNote) {
		this.orderNote = orderNote;
	}

	public String getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	public int getOrderTotal() {
		return this.orderTotal;
	}

	public void setOrderTotal(int orderTotal) {
		this.orderTotal = orderTotal;
	}

	public int getOrderTourId() {
		return this.orderTourId;
	}

	public void setOrderTourId(int orderTourId) {
		this.orderTourId = orderTourId;
	}

	public int getOrderUserId() {
		return this.orderUserId;
	}

	public void setOrderUserId(int orderUserId) {
		this.orderUserId = orderUserId;
	}

}